package com.stx.mall.util;

import org.springframework.web.multipart.commons.CommonsMultipartResolver;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by zhangl on 2018-12-13.
 */
public class CyberMallMultipartResolver extends CommonsMultipartResolver {

    @Override
    public boolean isMultipart(HttpServletRequest request) {
        String dir = request.getParameter("dir");
        if(dir!=null){  // kindeditor 上传图片的时候 不进行request 的转换
            return false;
        }
        return super.isMultipart(request);
    }
}